<template>
	<view>
		<view class="date-box">
			<view class="name">重庆光宇戴菲斯酒店</view>
			<view class="foot">
				<view class="tags">
					<view class="tag">标准房</view>
					<view class="tag">大床房</view>
					<view class="tag">有窗</view>
					<view class="tag">含早餐</view>
				</view>
			</view>
			<view class="date-range">
				<view>
					<view class="tv1">5月28日</view>
					<view class="tv2">今日入住</view>
				</view>
				<view class="tv1">1晚</view>
				<view>
					<view class="tv1">5月28日</view>
					<view class="tv2">明日离店</view>
				</view>
			</view>
			
		</view>
		
		<view class="form">
			<view class="form-item">
				<view class="label">住客姓名</view>
				<input type="text" class="input" placeholder="填写住客姓名">
			</view>
			<view class="form-item">
				<view class="label">手机号码</view>
				<input type="text" class="input" placeholder="填写住客手机号码">
			</view>
			<view class="form-item">
				<view class="label">预计到店时间</view>
				<input type="text" class="input" placeholder="11月20日 14:00">
				<view class="arrow place"></view>
			</view>
		</view>
		
		
		<view class="house-info">
			<view class="title">订房必读提示</view>
			<view class="title">退款规则</view>
			<view class="desc">规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容</view>
			<view class="title">预订说明</view>
			<view class="desc">规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容</view>
		</view>
		<view class="footer">
			<view>
				<text class="je">金额</text>
				<text class="price">￥170.00</text>
			</view>
			<view class="btn" @click="onSubmit">立即下单</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showPopup: false,
				showHouse: false
			};
		},
		methods: {
			onSubmit(){
				uni.navigateTo({
					url: '/pages/2_development/hotel/result'
				})
			}
		}
	}
</script>

<style lang="scss">
	@import './style.scss';
	.banner{
		height: 213px;
	}
	
	.date-box{
		// height: 134px;
		border-radius: 15px;
		background: #fff;
		margin: 10px 15px 15px;
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 18px;
		padding-bottom: 18px;
		.name{
			font-weight: bold;
			font-size: 18px;
			line-height: 1;
			color: #0b0b0b;
		}
		.date-range{
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
		.tv1{
			font-weight: bold;
			font-size: 22px;
			line-height: 1;
			color: #333;
		}
		.tv2{
			font-size: 18px;
			line-height: 1;
			color: #333;
			margin-top: 15px;
		}
		
		.foot{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 18px;
			margin-bottom: 22px;
		}
		.more{
			display: flex;
			align-items: center;
			.arrow{
				width: 9px;
				height: 9px;
			}
		}
		.tags{
			display: flex;
			
			.tag{
				width: 49px;
				height: 21px;
				line-height: 21px;
				margin-right: 8px;
				text-align: center;
				border-radius: 4px;
				background: rgba(153, 153, 153, 0.2);
			}
		}
	}
	
	
	.form{
		background-color: #fff;
		padding-left: 15px;
		.form-item{
			height: 67px;
			border-bottom: 1px solid #eee;
			display: flex;
			align-items: center;
			padding-right: 15px;
			.label{
				font-weight: normal;
				font-size: 18px;
				line-height: 1;
				color: #333;
				margin-right: 40px;
			}
			.input{
				flex: 1;
				font-size: 18px;
				color: #999;
			}
			.arrow{
				width: 15px;
				height: 15px;
			}
		}
	}

	.house-info{
		padding-left: 30px;
		padding-right: 20px;
		padding-bottom: 68px;
		position: relative;
		padding-top: 46px;
		background-color: #fff;
		.name{
			font-weight: bold;
			font-size: 18px;
			line-height: 25px;
			color: #0b0b0b;
			margin-bottom: 16px;
		}
		.swiper{
			height: 219px;
			border-radius: 14px;
			margin-top: 16px;
			margin-bottom: 23px;
		}
		.title{
			font-weight: bold;
			font-size: 16px;
			color: #0b0b0b;
			margin-bottom: 10px;
		}
		.sheshi{
			display: flex;
			justify-content: space-between;
			.sheshi-item{
				display: flex;
				flex-direction: column;
				align-items: center;
				margin-bottom: 14px;
			}
			.sheshi-icon{
				width: 29px;
				height: 29px;
			}
			.sheshi-name{
				font-size: 13px;
				line-height: 1;
				color: #333;
				margin-top: 6px;
			}
		}
		.desc{
			font-weight: normal;
			font-size: 13px;
			line-height: 22px;
			color: #333;
			margin-top: 18px;
		}
		}
		.footer{
			background-color: #fff;
			height: 44px;
			border-top: 1px solid #eee;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding-left: 15px;
			padding-right: 15px;
			.je{
				font-size: 11px;
				line-height: 1;
				color: #999;
			}
			.price{
				font-weight: bold;
				font-size: 22px;
				line-height: 1;
				color: #d82c2c;
			}
			.btn{
				width: 117px;
				height: 32px;
				line-height: 32px;
				text-align: center;
				border-radius: 16px;
				background: #0193ff;
				font-weight: bold;
				font-size: 16px;
				color: #fff;
			}
		}
	
	
</style>
